package cn.school.thoughtworks.section1;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class PracticeC {
    List<String> collectSameElements(List<String> collection1, Map<String,List<String>> collection2) {
        List<List<String>> values = new ArrayList<>(collection2.values());
        PracticeB practiceB = new PracticeB();

        return practiceB.collectSameElements(collection1,values);
    }
}
